import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
type int = number;
//class SArenaCrossFlowerNum
    
    export  class SArenaCrossFlowerNum extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SArenaCrossFlowerNum();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.entityId.__write(arg1);
            arg1.writeInt(this.flowerNum);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.flowerNum = arg1.readInt();
            return;
        }

        public /* const */_type: int=360;

        public /* var */entityId: SEntityId;

        public /* var */flowerNum: int;

        public static /* var */_regist: SArenaCrossFlowerNum;
    }

            SArenaCrossFlowerNum._regist = new SArenaCrossFlowerNum(true);
        